export type BaseQuery = {
  title?: string;
  columnName: string;
  filterMode: string;
  values: Array<string>;
};

export type ShowColumn = {
  columnName: string;
  columnApi: string;
  width: string | number;
  customHandle?: Function;
};

export type Result<T> = {
  success: boolean;
  data: T;
  code: number;
  total: string;
  msg: string;
};

export type OrderItem = {
  column: string;
  asc: boolean;
};

export type BaseRequest = {
  pageNo: number;
  pageSize: number;
  orders?: Array<OrderItem>;
  baseQueries?: Array<BaseQuery>;
};

export type ObjectKeyValue = {
  name: string;
  api: string;
};

export type Option = {
  label: string;
  value: string;
};
